package com.tangxz.chat.common.dto;

import com.tangxz.chat.modules.user.entity.TUser;
import lombok.Data;
import lombok.ToString;

/**
 * redis存储用户的数据结构
 * @author: 唐小尊
 * @email: 1171702529@qq.com
 * @cate: 2021/04/25 18:02
 */
@Data
@ToString
public class UserRedisDto {
    //用户
    TUser tUser;
    //状态
    Integer state;
    //上次离线时间
    Long lastLoginTime;

    public UserRedisDto(TUser tUser, Integer state, Long lastLoginTime) {
        this.tUser = tUser;
        this.state = state;
        this.lastLoginTime = lastLoginTime;
    }
}
